Lean 型クラス
#Fleeting_Notes
Lean 型クラス(Lean type class)
型クラス
code:lean
-- @see https://gist.github.com/spinylobster/372dbd859525363681afa1719c0dbf9c
class Group (G : Type) where
op : G -> G -> G
assoc : ∀ (a b c : G), op (op a b) c = op a (op b c)
unit : { e : G // ∀ (x : G) }, op e x = x ∧ (op x e) = x
inv : ∀ (x : G), { y : G // (op x y) = unit ∧ op y x = unit }
確認用
Q. Lean 型クラス
参考
https://gist.github.com/spinylobster/372dbd859525363681afa1719c0dbf9c
調査用
Google.icon Lean 型クラス(日)
Google.icon Lean type class(英)
Wikipedia.icon
Lean 型クラス - Wikipedia(日)
Lean 型クラス(検索) - Wikipedia(日)
Wikipedia.icon
Lean type class - Wikipedia(英)
Lean type class(検索) - Wikipedia(英)